<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>请假任务办理</title>
<%@include file="../common/commons.jspf" %>
<script type="text/javascript">
	$(function() {
		$("#leaveBillRemark").val($("#remarkValue").val());
	});
</script>
</head>
<body>
<%@include file="../common/top.jsp"%>
	<div id="content" style="width:90%;"> 
		<div id="dealForm">
		<table class="table">
			<caption style="background-color: #428BCA;">
				<span  class="label pull-left"
						style="font-family: white; font-size: 16px"><span class="local"
						data-local="flow_handle_task_title">任务明细：</span></span>
			</caption>
			<tr>
				<td>

					<form class="form-horizontal" role="form" id="addOrUpdateForm"
						action="#">
						<input type="hidden" name="id" value="${leaveBill.id }"> <input
							type="hidden" name="taskId" value="${taskId }">
						<div class="form-group">
							<label for="firstname" class="col-sm-2 control-label"><span class="local"
						data-local="flow_handle_task_input_days">请假天数:</span></label>
							<div class="col-sm-10">
								<input type="text" class="form-control" name="days"
									id="leaveBillDays" disabled="disabled"
									value="${leaveBill.days }">
							</div>
						</div>
						<div class="form-group">
							<label for="lastname" class="col-sm-2 control-label"><span class="local"
						data-local="flow_handle_task_input_reason">请假原因:</span></label>
							<div class="col-sm-10">
								<input type="text" class="form-control" name="content"
									id="leaveBillContent" disabled="disabled"
									value="${leaveBill.content }">
							</div>
						</div>
						<div class="form-group">
							<label for="lastname" class="col-sm-2 control-label"><span class="local"
						data-local="flow_handle_task_input_desc">备注:</span></label>
							<div class="col-sm-10">
								<input type="hidden" value="${leaveBill.remark }"
										id="remarkValue">
								<textarea class="form-control" rows="3" name="remark"
									id="leaveBillRemark" disabled="disabled" style="resize:none;"></textarea>
							</div>

						</div>
						<button type="button" class="btn btn-primary pull-right"
							onclick="window.history.go(-1);"><span class="local"
						data-local="flow_handle_task_btn_back">返回</span></button>
					</form>
				</td>
			</tr>
		</table>
	</div>





	<div id="dealTable" style="margin-top: 10%;">
		<table class="table table-hover">
			<caption style="background-color: #428BCA;">
				<span  class="label pull-left"
						style="font-family: white; font-size: 16px"><span class="local"
						data-local="flow_handle_task_his_title">显示请假申请的批注信息：</span></span>
			</caption>
			<thead>
				<tr>
					<th><span class="local"
						data-local="flow_handle_task_his_time">时间</span></th>
					<th><span class="local"
						data-local="flow_handle_task_his_person">批注人</span></th>
					<th><span class="local"
						data-local="flow_handle_task_his_remark">批注信息</span></th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${commentList }" var="comment">
					<tr>
						<td><fmt:formatDate value="${comment.time }"
								pattern="yyyy-MM-dd HH:mm:ss" /></td>
						<td>${comment.userId }</td>
						<td>${comment.fullMessage  }</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
	</div>


</body>
</html>